﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class CountryRecord : BiffRecord
    {
        private ushort iCountryDef = 1;
        private ushort iCountryWinIni = 1;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            iCountryDef= context.ReadUInt16();
            iCountryWinIni = context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.Country; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Writer.Write(iCountryDef);
            context.Writer.Write(iCountryWinIni);
        }
    }
}